Skip to content

chore: use relative path in the comment for the baseURL#165

Merged
yury-s merged 2 commits intomicrosoft:mainfrom
yury-s:base-url-comment
Sep 30, 2025
Merged

chore: use relative path in the comment for the baseURL#165
yury-s merged 2 commits intomicrosoft:mainfrom
yury-s:base-url-comment

Conversation

@yury-s
Copy link
Member

@yury-s yury-s commented Sep 30, 2025

Othewise it may cause confusion if the user puts something like https://demo.playwright.dev/todomvc/#/ in the base url and wants to navigate to that exact url by default.

Othewise it may cause confusion if the user puts something like
https://demo.playwright.dev/todomvc/#/ in the base url and wants
to navigate to that exact url by default.
/* Shared settings for all the projects below. See https://playwright.dev/docs/api/class-testoptions. */
use: {
/* Base URL to use in actions like `await page.goto('/')`. */
/* Base URL to use in actions like `await page.goto('./')`. */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think empty string looks better?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it does look better, but I'm worried that it makes it less clear how to write a relative url there.

@yury-s yury-s merged commit 39d3f77 into microsoft:main Sep 30, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants